import { CreatePermissionDto } from '@app/modules';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class CreateRoleDto {
  @ApiProperty({ description: '角色名' })
  name: string;

  @ApiPropertyOptional({ type: () => [CreatePermissionDto], description: '角色权限' })
  permisions: CreatePermissionDto[];
}
